head = int(input())
feet = int(input())
rabbit = head
chicken = 0
solution = False
for i in range (head):
    if (rabbit*4+chicken*2==feet):
        print(f'Chicken={chicken} Rabbit={rabbit}')
        solution=True
        break
    else:
        rabbit-=1
        chicken+=1
if not solution:
    print('No solution!')